package com.cz.nongyetongv5.bean;

import android.graphics.Bitmap;

import java.io.Serializable;

public class ChatBean implements Serializable {


	private long messageId ;

	private String name;

	private String date;

	private String text;


	private Bitmap touXiang ;


	private int messageType = ChatType.FROM_MESSAGE;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}




	public static class ChatType {

		/**
		 * 别人发来的消息
		 */
		public static final int FROM_MESSAGE = 0;

		/**
		 * 发送给别人
		 */
		public static final int TO_MESSAGE = 1;

		/**
		 * 普通消息
		 */
		public static final int MESSAGE = 2;


	}





	public int getMessageType() {
		return messageType;
	}

	public void setMessageType(int messageType) {
		this.messageType = messageType;
	}

	public Bitmap getTouXiang() {
		return touXiang;
	}

	public void setTouXiang(Bitmap touXiang) {
		this.touXiang = touXiang;
	}

	public long getMessageId() {
		return messageId;
	}

	public void setMessageId(long messageId) {
		this.messageId = messageId;
	}

}
